<?php get_header(); ?>

<div id="content">

    <div class="content-wrapper">

        <?php get_sidebar(); ?>

        <div id="main"><div class="inner">
        
        	<div id="gallery-wrapper">
            	<?php slidedeck( 7, array( 'width' => '100%', 'height' => '370px' ) ); ?>
            </div>
            <div id="box-wrapper">
            	<div class="home-widget">
            		<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Widget 1')) : ?><?php endif; ?>
            	</div>
            	<div class="home-widget">
            		<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Widget 2')) : ?><?php endif; ?>
            	</div>
            	<div class="home-widget">
            		<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Home Widget 3')) : ?><?php endif; ?>
            	</div>
            	<div class="clear"></div>
            </div>
            <div id="news-wrapper">
            	<div id="news"><div class="news-inner">
            		<?php
						$args = array( 'numberposts'     => 5, 'category' => get_cat_id('Noticias') );
						$lastposts = get_posts( $args );
						foreach($lastposts as $post) : setup_postdata($post); ?>
							<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
							<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>
							<div class="entry">
								<?php the_excerpt(); ?>
							</div>
						<?php endforeach; ?>
						<div class="navigation"><a href='?cat=<?php echo get_cat_id('Noticias') ?>'>&laquo;Archivo de Noticias</a></div>
            	</div></div>
                <div id="press">
                	<div class="press-inner">
                		<h4>Sala de Prensa</h4>
                		<ul>
                		<?php
						$args = array( 'numberposts'     => 5, 'category' => get_cat_id('Prensa') );
						$lastposts = get_posts( $args );
						foreach($lastposts as $post) : setup_postdata($post); ?>
							<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
						<?php endforeach; ?>
						</ul>
						<div class="navigation"><a href='?cat=<?php echo get_cat_id('Prensa') ?>'>&laquo;Archivo de Prensa</a></div>
                	</div>
                	<div class="press-inner">
                		<!-- <h4>Eventos</h4> -->
                	</div>
                </div>
            </div>
                
        </div></div>

    </div>

</div>

<?php get_footer(); ?>
